package com.feynman.pattern.factory.factorymethod;

import com.feynman.pattern.factory.Huawei;
import com.feynman.pattern.factory.Iphone;
import com.feynman.pattern.factory.Phone;
import com.feynman.pattern.factory.Xiaomi;


/**
 * @ClassName FactoryMethodTest
 * @Description 工厂方法测试
 * @Author Feynman
 * @date 2019/3/26 14:35
 * @Version V1.0
 **/
public class FactoryMethodTest {
    public static void main(String[] args) {
        PhoneFactory factory =  new HuaweiFactory();
//        PhoneFactory factory =  new XiaomiFactory();
//        PhoneFactory factory =  new IphoneFactory();
        factory.product();

    }
}
